package com.yida.system.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.*;
import java.math.BigDecimal;

/**
 * @Description 黑名单修改参数
 * @Author wws
 * @Date 2023-03-22
 */
@ApiModel("黑名单修改参数")
public class SysBlackListEditRequest {

    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    @Schema(description = "禁用时长类型（0：永久；1：计时）")
    @NotBlank(message = "禁用时长类型不能为空")
    private String limitTimeType;

    @Schema(description = "禁用时长（分钟）")
    @Digits(integer = 9, fraction = 2, message = "禁用时长格式不正确")
    @DecimalMax(value = "99999999.99", message = "禁用时长不得超过99999999.99")
    @DecimalMin(value = "0.01", message = "禁用时长不得小于0.01")
    private BigDecimal limitTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLimitTimeType() {
        return limitTimeType;
    }

    public void setLimitTimeType(String limitTimeType) {
        this.limitTimeType = limitTimeType;
    }

    public BigDecimal getLimitTime() {
        return limitTime;
    }

    public void setLimitTime(BigDecimal limitTime) {
        this.limitTime = limitTime;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("SysBlackListEditRequest{");
        sb.append("id=").append(id);
        sb.append(", limitTimeType='").append(limitTimeType).append('\'');
        sb.append(", limitTime=").append(limitTime);
        sb.append('}');
        return sb.toString();
    }
}
